package design_pattern.immutableMode;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/6 10:56
 * @Version 1.0
 */
public class ImmutableTest {
    private final int age;
    private final String name;
    private final List<String> list;
    public ImmutableTest(int age,String name){
        this.age = age;
        this.name = name;
        this.list = new ArrayList<>();
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public List<String> getList() {
        return list;
    }
}
